﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using System.Data;

public partial class Home : System.Web.UI.Page
{
    protected override void InitializeCulture()
    {
        System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(HttpContext.Current.Request.UserLanguages[0]);
        System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(HttpContext.Current.Request.UserLanguages[0]);

        base.InitializeCulture();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //{

        //    if (Session["UserData"] != null)
        //    {
        //        DataTable userData = (DataTable)Session["UserData"];
        //        if (userData != null && userData.Rows.Count == 1)
       //         {
        //            string roleString = userData.Rows[0]["roletype"].ToString();
        ///            int roleID = 0;
        //            int.TryParse(roleString, out roleID);
        //            switch (roleID)
        //            {
        //                case -1:
        //                Response.Redirect("Default.aspx?area=orgForm");
        //                break;
        //                case 1:
        //                Response.Redirect("AdminPage.aspx?area=programari");
        //                break;
       ///                 default:
       //                 break;
       //             }
      //          }
      //      }
      //  }
    }
}